package sjtu.rfid.rri.services.queue;

import java.util.List;

/**
 * This interface defines the listener on queue. The listener will receive
 * notfication when both there is data available on queue and sending condition
 * meets.
 * 
 * @author jinghao
 * 
 */

public interface QueueListener {
	/**
	 * When queue sends message, this method will be called. Caution: The list
	 * will be cleared when this method returns. So don't rely on this objects
	 * in the list unless you make a copy of the list.
	 * 
	 * @param list
	 */
	public void onMessage(List<Object> list);
}
